﻿// See https://aka.ms/new-console-template for more information

using IOCDemo;
using IOCDemo.IocVersion2;

var container = new ContainerBuilder();
container.RegisterType<IWebCient, WebClient>();
container.RegisterType<IShowName, ShowName>();
var services = container.Build();
var service = services.GetService<IShowName>();
service.PrintWithWebClient();
// var webClient = new WebClient();
// var service = new ShowName(webClient);
// service.PrintWithWebClient();